from fontTools.ttLib import TTCollection


def ttc_to_ttfs(ttc_path, output_path):
    ttc = TTCollection(ttc_path)
    for i, font in enumerate(ttc.fonts):
        output_ttf_path = f"{output_path}/font_{i}.ttf"
        font.save(output_ttf_path)
        print(f"Saved font {i} to {output_ttf_path}")